package com.mls.fivedistrict.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ProductLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ProductLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProductTotalIsNull() {
            addCriterion("product_total is null");
            return (Criteria) this;
        }

        public Criteria andProductTotalIsNotNull() {
            addCriterion("product_total is not null");
            return (Criteria) this;
        }

        public Criteria andProductTotalEqualTo(BigDecimal value) {
            addCriterion("product_total =", value, "productTotal");
            return (Criteria) this;
        }

        public Criteria andProductTotalNotEqualTo(BigDecimal value) {
            addCriterion("product_total <>", value, "productTotal");
            return (Criteria) this;
        }

        public Criteria andProductTotalGreaterThan(BigDecimal value) {
            addCriterion("product_total >", value, "productTotal");
            return (Criteria) this;
        }

        public Criteria andProductTotalGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("product_total >=", value, "productTotal");
            return (Criteria) this;
        }

        public Criteria andProductTotalLessThan(BigDecimal value) {
            addCriterion("product_total <", value, "productTotal");
            return (Criteria) this;
        }

        public Criteria andProductTotalLessThanOrEqualTo(BigDecimal value) {
            addCriterion("product_total <=", value, "productTotal");
            return (Criteria) this;
        }

        public Criteria andProductTotalIn(List<BigDecimal> values) {
            addCriterion("product_total in", values, "productTotal");
            return (Criteria) this;
        }

        public Criteria andProductTotalNotIn(List<BigDecimal> values) {
            addCriterion("product_total not in", values, "productTotal");
            return (Criteria) this;
        }

        public Criteria andProductTotalBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("product_total between", value1, value2, "productTotal");
            return (Criteria) this;
        }

        public Criteria andProductTotalNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("product_total not between", value1, value2, "productTotal");
            return (Criteria) this;
        }

        public Criteria andSumCalculateIsNull() {
            addCriterion("sum_calculate is null");
            return (Criteria) this;
        }

        public Criteria andSumCalculateIsNotNull() {
            addCriterion("sum_calculate is not null");
            return (Criteria) this;
        }

        public Criteria andSumCalculateEqualTo(Long value) {
            addCriterion("sum_calculate =", value, "sumCalculate");
            return (Criteria) this;
        }

        public Criteria andSumCalculateNotEqualTo(Long value) {
            addCriterion("sum_calculate <>", value, "sumCalculate");
            return (Criteria) this;
        }

        public Criteria andSumCalculateGreaterThan(Long value) {
            addCriterion("sum_calculate >", value, "sumCalculate");
            return (Criteria) this;
        }

        public Criteria andSumCalculateGreaterThanOrEqualTo(Long value) {
            addCriterion("sum_calculate >=", value, "sumCalculate");
            return (Criteria) this;
        }

        public Criteria andSumCalculateLessThan(Long value) {
            addCriterion("sum_calculate <", value, "sumCalculate");
            return (Criteria) this;
        }

        public Criteria andSumCalculateLessThanOrEqualTo(Long value) {
            addCriterion("sum_calculate <=", value, "sumCalculate");
            return (Criteria) this;
        }

        public Criteria andSumCalculateIn(List<Long> values) {
            addCriterion("sum_calculate in", values, "sumCalculate");
            return (Criteria) this;
        }

        public Criteria andSumCalculateNotIn(List<Long> values) {
            addCriterion("sum_calculate not in", values, "sumCalculate");
            return (Criteria) this;
        }

        public Criteria andSumCalculateBetween(Long value1, Long value2) {
            addCriterion("sum_calculate between", value1, value2, "sumCalculate");
            return (Criteria) this;
        }

        public Criteria andSumCalculateNotBetween(Long value1, Long value2) {
            addCriterion("sum_calculate not between", value1, value2, "sumCalculate");
            return (Criteria) this;
        }

        public Criteria andPeopleTotalIsNull() {
            addCriterion("people_total is null");
            return (Criteria) this;
        }

        public Criteria andPeopleTotalIsNotNull() {
            addCriterion("people_total is not null");
            return (Criteria) this;
        }

        public Criteria andPeopleTotalEqualTo(Integer value) {
            addCriterion("people_total =", value, "peopleTotal");
            return (Criteria) this;
        }

        public Criteria andPeopleTotalNotEqualTo(Integer value) {
            addCriterion("people_total <>", value, "peopleTotal");
            return (Criteria) this;
        }

        public Criteria andPeopleTotalGreaterThan(Integer value) {
            addCriterion("people_total >", value, "peopleTotal");
            return (Criteria) this;
        }

        public Criteria andPeopleTotalGreaterThanOrEqualTo(Integer value) {
            addCriterion("people_total >=", value, "peopleTotal");
            return (Criteria) this;
        }

        public Criteria andPeopleTotalLessThan(Integer value) {
            addCriterion("people_total <", value, "peopleTotal");
            return (Criteria) this;
        }

        public Criteria andPeopleTotalLessThanOrEqualTo(Integer value) {
            addCriterion("people_total <=", value, "peopleTotal");
            return (Criteria) this;
        }

        public Criteria andPeopleTotalIn(List<Integer> values) {
            addCriterion("people_total in", values, "peopleTotal");
            return (Criteria) this;
        }

        public Criteria andPeopleTotalNotIn(List<Integer> values) {
            addCriterion("people_total not in", values, "peopleTotal");
            return (Criteria) this;
        }

        public Criteria andPeopleTotalBetween(Integer value1, Integer value2) {
            addCriterion("people_total between", value1, value2, "peopleTotal");
            return (Criteria) this;
        }

        public Criteria andPeopleTotalNotBetween(Integer value1, Integer value2) {
            addCriterion("people_total not between", value1, value2, "peopleTotal");
            return (Criteria) this;
        }

        public Criteria andPoolIdIsNull() {
            addCriterion("pool_id is null");
            return (Criteria) this;
        }

        public Criteria andPoolIdIsNotNull() {
            addCriterion("pool_id is not null");
            return (Criteria) this;
        }

        public Criteria andPoolIdEqualTo(Long value) {
            addCriterion("pool_id =", value, "poolId");
            return (Criteria) this;
        }

        public Criteria andPoolIdNotEqualTo(Long value) {
            addCriterion("pool_id <>", value, "poolId");
            return (Criteria) this;
        }

        public Criteria andPoolIdGreaterThan(Long value) {
            addCriterion("pool_id >", value, "poolId");
            return (Criteria) this;
        }

        public Criteria andPoolIdGreaterThanOrEqualTo(Long value) {
            addCriterion("pool_id >=", value, "poolId");
            return (Criteria) this;
        }

        public Criteria andPoolIdLessThan(Long value) {
            addCriterion("pool_id <", value, "poolId");
            return (Criteria) this;
        }

        public Criteria andPoolIdLessThanOrEqualTo(Long value) {
            addCriterion("pool_id <=", value, "poolId");
            return (Criteria) this;
        }

        public Criteria andPoolIdIn(List<Long> values) {
            addCriterion("pool_id in", values, "poolId");
            return (Criteria) this;
        }

        public Criteria andPoolIdNotIn(List<Long> values) {
            addCriterion("pool_id not in", values, "poolId");
            return (Criteria) this;
        }

        public Criteria andPoolIdBetween(Long value1, Long value2) {
            addCriterion("pool_id between", value1, value2, "poolId");
            return (Criteria) this;
        }

        public Criteria andPoolIdNotBetween(Long value1, Long value2) {
            addCriterion("pool_id not between", value1, value2, "poolId");
            return (Criteria) this;
        }

        public Criteria andProductPlanIdIsNull() {
            addCriterion("product_plan_id is null");
            return (Criteria) this;
        }

        public Criteria andProductPlanIdIsNotNull() {
            addCriterion("product_plan_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductPlanIdEqualTo(Long value) {
            addCriterion("product_plan_id =", value, "productPlanId");
            return (Criteria) this;
        }

        public Criteria andProductPlanIdNotEqualTo(Long value) {
            addCriterion("product_plan_id <>", value, "productPlanId");
            return (Criteria) this;
        }

        public Criteria andProductPlanIdGreaterThan(Long value) {
            addCriterion("product_plan_id >", value, "productPlanId");
            return (Criteria) this;
        }

        public Criteria andProductPlanIdGreaterThanOrEqualTo(Long value) {
            addCriterion("product_plan_id >=", value, "productPlanId");
            return (Criteria) this;
        }

        public Criteria andProductPlanIdLessThan(Long value) {
            addCriterion("product_plan_id <", value, "productPlanId");
            return (Criteria) this;
        }

        public Criteria andProductPlanIdLessThanOrEqualTo(Long value) {
            addCriterion("product_plan_id <=", value, "productPlanId");
            return (Criteria) this;
        }

        public Criteria andProductPlanIdIn(List<Long> values) {
            addCriterion("product_plan_id in", values, "productPlanId");
            return (Criteria) this;
        }

        public Criteria andProductPlanIdNotIn(List<Long> values) {
            addCriterion("product_plan_id not in", values, "productPlanId");
            return (Criteria) this;
        }

        public Criteria andProductPlanIdBetween(Long value1, Long value2) {
            addCriterion("product_plan_id between", value1, value2, "productPlanId");
            return (Criteria) this;
        }

        public Criteria andProductPlanIdNotBetween(Long value1, Long value2) {
            addCriterion("product_plan_id not between", value1, value2, "productPlanId");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andFrequencyIsNull() {
            addCriterion("frequency is null");
            return (Criteria) this;
        }

        public Criteria andFrequencyIsNotNull() {
            addCriterion("frequency is not null");
            return (Criteria) this;
        }

        public Criteria andFrequencyEqualTo(Integer value) {
            addCriterion("frequency =", value, "frequency");
            return (Criteria) this;
        }

        public Criteria andFrequencyNotEqualTo(Integer value) {
            addCriterion("frequency <>", value, "frequency");
            return (Criteria) this;
        }

        public Criteria andFrequencyGreaterThan(Integer value) {
            addCriterion("frequency >", value, "frequency");
            return (Criteria) this;
        }

        public Criteria andFrequencyGreaterThanOrEqualTo(Integer value) {
            addCriterion("frequency >=", value, "frequency");
            return (Criteria) this;
        }

        public Criteria andFrequencyLessThan(Integer value) {
            addCriterion("frequency <", value, "frequency");
            return (Criteria) this;
        }

        public Criteria andFrequencyLessThanOrEqualTo(Integer value) {
            addCriterion("frequency <=", value, "frequency");
            return (Criteria) this;
        }

        public Criteria andFrequencyIn(List<Integer> values) {
            addCriterion("frequency in", values, "frequency");
            return (Criteria) this;
        }

        public Criteria andFrequencyNotIn(List<Integer> values) {
            addCriterion("frequency not in", values, "frequency");
            return (Criteria) this;
        }

        public Criteria andFrequencyBetween(Integer value1, Integer value2) {
            addCriterion("frequency between", value1, value2, "frequency");
            return (Criteria) this;
        }

        public Criteria andFrequencyNotBetween(Integer value1, Integer value2) {
            addCriterion("frequency not between", value1, value2, "frequency");
            return (Criteria) this;
        }

        public Criteria andIntegralIdIsNull() {
            addCriterion("integral_id is null");
            return (Criteria) this;
        }

        public Criteria andIntegralIdIsNotNull() {
            addCriterion("integral_id is not null");
            return (Criteria) this;
        }

        public Criteria andIntegralIdEqualTo(Long value) {
            addCriterion("integral_id =", value, "integralId");
            return (Criteria) this;
        }

        public Criteria andIntegralIdNotEqualTo(Long value) {
            addCriterion("integral_id <>", value, "integralId");
            return (Criteria) this;
        }

        public Criteria andIntegralIdGreaterThan(Long value) {
            addCriterion("integral_id >", value, "integralId");
            return (Criteria) this;
        }

        public Criteria andIntegralIdGreaterThanOrEqualTo(Long value) {
            addCriterion("integral_id >=", value, "integralId");
            return (Criteria) this;
        }

        public Criteria andIntegralIdLessThan(Long value) {
            addCriterion("integral_id <", value, "integralId");
            return (Criteria) this;
        }

        public Criteria andIntegralIdLessThanOrEqualTo(Long value) {
            addCriterion("integral_id <=", value, "integralId");
            return (Criteria) this;
        }

        public Criteria andIntegralIdIn(List<Long> values) {
            addCriterion("integral_id in", values, "integralId");
            return (Criteria) this;
        }

        public Criteria andIntegralIdNotIn(List<Long> values) {
            addCriterion("integral_id not in", values, "integralId");
            return (Criteria) this;
        }

        public Criteria andIntegralIdBetween(Long value1, Long value2) {
            addCriterion("integral_id between", value1, value2, "integralId");
            return (Criteria) this;
        }

        public Criteria andIntegralIdNotBetween(Long value1, Long value2) {
            addCriterion("integral_id not between", value1, value2, "integralId");
            return (Criteria) this;
        }

        public Criteria andIntegralNameIsNull() {
            addCriterion("integral_name is null");
            return (Criteria) this;
        }

        public Criteria andIntegralNameIsNotNull() {
            addCriterion("integral_name is not null");
            return (Criteria) this;
        }

        public Criteria andIntegralNameEqualTo(String value) {
            addCriterion("integral_name =", value, "integralName");
            return (Criteria) this;
        }

        public Criteria andIntegralNameNotEqualTo(String value) {
            addCriterion("integral_name <>", value, "integralName");
            return (Criteria) this;
        }

        public Criteria andIntegralNameGreaterThan(String value) {
            addCriterion("integral_name >", value, "integralName");
            return (Criteria) this;
        }

        public Criteria andIntegralNameGreaterThanOrEqualTo(String value) {
            addCriterion("integral_name >=", value, "integralName");
            return (Criteria) this;
        }

        public Criteria andIntegralNameLessThan(String value) {
            addCriterion("integral_name <", value, "integralName");
            return (Criteria) this;
        }

        public Criteria andIntegralNameLessThanOrEqualTo(String value) {
            addCriterion("integral_name <=", value, "integralName");
            return (Criteria) this;
        }

        public Criteria andIntegralNameLike(String value) {
            addCriterion("integral_name like", value, "integralName");
            return (Criteria) this;
        }

        public Criteria andIntegralNameNotLike(String value) {
            addCriterion("integral_name not like", value, "integralName");
            return (Criteria) this;
        }

        public Criteria andIntegralNameIn(List<String> values) {
            addCriterion("integral_name in", values, "integralName");
            return (Criteria) this;
        }

        public Criteria andIntegralNameNotIn(List<String> values) {
            addCriterion("integral_name not in", values, "integralName");
            return (Criteria) this;
        }

        public Criteria andIntegralNameBetween(String value1, String value2) {
            addCriterion("integral_name between", value1, value2, "integralName");
            return (Criteria) this;
        }

        public Criteria andIntegralNameNotBetween(String value1, String value2) {
            addCriterion("integral_name not between", value1, value2, "integralName");
            return (Criteria) this;
        }

        public Criteria andResidueIsNull() {
            addCriterion("residue is null");
            return (Criteria) this;
        }

        public Criteria andResidueIsNotNull() {
            addCriterion("residue is not null");
            return (Criteria) this;
        }

        public Criteria andResidueEqualTo(BigDecimal value) {
            addCriterion("residue =", value, "residue");
            return (Criteria) this;
        }

        public Criteria andResidueNotEqualTo(BigDecimal value) {
            addCriterion("residue <>", value, "residue");
            return (Criteria) this;
        }

        public Criteria andResidueGreaterThan(BigDecimal value) {
            addCriterion("residue >", value, "residue");
            return (Criteria) this;
        }

        public Criteria andResidueGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("residue >=", value, "residue");
            return (Criteria) this;
        }

        public Criteria andResidueLessThan(BigDecimal value) {
            addCriterion("residue <", value, "residue");
            return (Criteria) this;
        }

        public Criteria andResidueLessThanOrEqualTo(BigDecimal value) {
            addCriterion("residue <=", value, "residue");
            return (Criteria) this;
        }

        public Criteria andResidueIn(List<BigDecimal> values) {
            addCriterion("residue in", values, "residue");
            return (Criteria) this;
        }

        public Criteria andResidueNotIn(List<BigDecimal> values) {
            addCriterion("residue not in", values, "residue");
            return (Criteria) this;
        }

        public Criteria andResidueBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("residue between", value1, value2, "residue");
            return (Criteria) this;
        }

        public Criteria andResidueNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("residue not between", value1, value2, "residue");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}